import Vue from 'vue'
import App from './App'
import Store from '@/store/index.js'
import httpInterceptor from '@/common/http/interceptor.js'
import uploadFile from '@/common/http/uploadFile.js'
import httpApi from '@/common/http/api.js'

//混入和继承
import CommonMixin from '@/mixins/common-mixins.js';
Vue.mixin(CommonMixin)


import uView from "uview-ui";
// 组件引入
import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"
import MescrollEmpty from "@/components/mescroll-uni/components/mescroll-empty.vue";

Vue.component('mescroll-body', MescrollBody);
Vue.component('mescroll-uni', MescrollUni);
Vue.component('mescroll-empty', MescrollEmpty);


// ce1
// tim.login({userID: 'cyk', userSig: 'eJyrVgrxCdYrSy1SslIy0jNQ0gHzM1NS80oy0zLBwsmV2VDh4pTsxIKCzBQlK0MTAwNjM0tTSxOITGpFQWZRKlDc1NTUyMDAACJakpkLFrM0NDc1MDc0gpqSmQ40tdDNw98gP8vX19m0Mi3c2c3XNSwgMrskRj8QiCtTc-yCfbOqsrPTvSK9k5NtlWoBFBgxzw__'});

//第三方依赖初始化
Vue.use(uView);


Vue.config.productionTip = false

//追加vue全局属性
Vue.prototype.$store = Store;

App.mpType = 'app'

const app = new Vue({
	...App,
	Store
})
Vue.use(httpInterceptor, app);
Vue.use(httpApi, app);
Vue.use(uploadFile, app);
app.$mount()
